package cn.trda.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.trda.pojo.Keywords;
import cn.trda.util.MySqlPageUtil;

public interface AsKeywordsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Keywords keywords);

    int insertSelective(Keywords keywords);

    Keywords selectByPrimaryKey(Long id);
    /**
     * 查找指定关键字的关键字对象
     * @param keywords
     * @return
     */
    @Select(value="SELECT * FROM as_keywords WHERE keywords=#{keywords}")
    Keywords selectByKeywords(String keywords);
    
    int updateByPrimaryKeySelective(Keywords keywords);

    int updateByPrimaryKey(Keywords keywords);
    
    int getCount(Keywords keywords);

	List<Keywords> getKeywordsBySearch(@Param("keywords")Keywords keywords,
			@Param("pt")MySqlPageUtil mySqlPageUtil);
	int updateKeywords(Keywords keywords);
	
	


}